<template>
  <div class="topbar">
    <!-- 版心 -->
    <div class="wrap">
      <div class="topbarwrap">
        <div class="left">欢迎来到叩丁狼积分商城</div>
        <ul class="right">
          <li>
            <img src="../assets/img/userImg.f8bbec5e.png" alt="" />用户名：游客
          </li>
          <li>我的积分：--</li>
          <li>获取积分</li>
          <li>叩丁狼官网</li>
          <li class="loginBtn" @click="changeIsShowLoginModal(true)">登录</li>
        </ul>
      </div>
    </div>
  </div>
</template>

<script>
import { mapMutations } from "vuex";
export default {
  data() {
    return {};
  },
  methods: {
    ...mapMutations({
      changeIsShowLoginModal: "showModal/changeIsShowLoginModal",
    }),
  },
};
</script>

<style lang = "less" scoped>
.topbar {
  height: 40px;
  line-height: 40px;
  background: #242b39;
  font-size: 14px;
  font-family: SourceHanSansSC;
  font-weight: 300;
  color: #fffefe;
  .topbarwrap {
    display: flex;
    justify-content: space-between;
    .right {
      display: flex;
      li {
        cursor: pointer;
        padding: 0 10px;
        text-align: center;
        img {
          width: 26px;
          height: 26px;
          vertical-align: middle;
          border-radius: 50%;
        }
        &.loginBtn {
          width: 124px;
          height: 40px;
          background: #0a328e;
        }
      }
    }
  }
}
</style>